<?php
$data = array();
$data['1'] = $_POST['open'];
$data['2'] = $_POST['neirong'];
$data['3'] = $_POST['lianjie'];
$json_string = json_encode($data);
   $filename = 'admin.json';
   $fp= fopen($filename, "w");  //w是写入模式，文件不存在则创建文件写入。
   $len = fwrite($fp,$json_string);
   fclose($fp);
 echo"<script type="."\""."text/javascript"."\"".">"."window.alert"."("."\""."修改成功！"."\"".")".";"."</script>"; echo"<script type="."\""."text/javascript"."\"".">"."window.location="."\""."./gonggao.php"."\""."</script>";
?>